package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @author wangweiqiang
 * @version 1.0
 * @date 2021-07-13 10:51
 */
@FeignClient("gulimall-product")
public interface ProductService {
    @RequestMapping("/product/categorybrandrelation/list")
    R list(@RequestParam Map<String, Object> params);

    @RequestMapping("/product/categorybrandrelation/info/{id}")
    R info(@PathVariable("id") Long id);
}
